package io.nutz.nutzsite.module.exam.models;

import io.nutz.nutzsite.common.base.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
								import java.util.Date;
		
/**
 * 题库表 exam_qdb
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exam_qdb")
public class Qdb implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id(auto=false)
		@Column("id")
	@Comment("题库编号")
	private Integer id;

		/** 父级ID */
	@Column("pid")
	@Comment("父级ID")
	private Integer pid;

		/** 题库名称 */
	@Column("name")
	@Comment("题库名称")
	private String name;

		/** 题库图标 */
	@Column("logo")
	@Comment("题库图标")
	private String logo;

		/** 是否开放 */
	@Column("status")
	@Comment("是否开放")
	private boolean status;

		/** 备注 */
	@Column("remark")
	@Comment("备注")
	private String remark;

		/** 创建者 */
	@Column("poster")
	@Comment("创建者")
	private String poster;

		/** 创建时间 */
	@Column("createdate")
	@Comment("创建时间")
	private Date createdate;

		/** 修改者 */
	@Column("modifyor")
	@Comment("修改者")
	private String modifyor;

		/** 修改时间 */
	@Column("modifydate")
	@Comment("修改时间")
	private Date modifydate;

	private String parentName;
	
	
	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}

	public void setPid(Integer pid) 
	{
		this.pid = pid;
	}

	public Integer getPid() 
	{
		return pid;
	}

	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}

	public void setLogo(String logo) 
	{
		this.logo = logo;
	}

	public String getLogo() 
	{
		return logo;
	}

	

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

	public void setPoster(String poster) 
	{
		this.poster = poster;
	}

	public String getPoster() 
	{
		return poster;
	}

	public void setCreatedate(Date createdate) 
	{
		this.createdate = createdate;
	}

	public Date getCreatedate() 
	{
		return createdate;
	}

	public void setModifyor(String modifyor) 
	{
		this.modifyor = modifyor;
	}

	public String getModifyor() 
	{
		return modifyor;
	}

	public void setModifydate(Date modifydate) 
	{
		this.modifydate = modifydate;
	}

	public Date getModifydate() 
	{
		return modifydate;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("name", getName())
            .append("logo", getLogo())
            .append("status", isStatus())
            .append("remark", getRemark())
            .append("poster", getPoster())
            .append("createdate", getCreatedate())
            .append("modifyor", getModifyor())
            .append("modifydate", getModifydate())
            .toString();
    }
}
